<?php 
/* SVN FILE: $Id$ */
/* EmailSendlist Test cases generated on: 2009-05-30 22:05:53 : 1243736513*/
App::import('Model', 'EmailSendlist');

class EmailSendlistTestCase extends CakeTestCase {
	var $EmailSendlist = null;
	var $fixtures = array('app.email_sendlist');

	function startTest() {
		$this->EmailSendlist =& ClassRegistry::init('EmailSendlist');
	}

	function testEmailSendlistInstance() {
		$this->assertTrue(is_a($this->EmailSendlist, 'EmailSendlist'));
	}

	function testEmailSendlistFind() {
		$this->EmailSendlist->recursive = -1;
		$results = $this->EmailSendlist->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('EmailSendlist' => array(
			'id'  => 1,
			'email'  => 'Lorem ipsum dolor sit amet',
			'template'  => 1,
			'email_content'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'error'  => 1,
			'pri'  => 1,
			'last_send'  => '2009-05-30 22:21:50'
		));
		$this->assertEqual($results, $expected);
	}
}
?>